package bms;

import java.io.*;
import java.util.List;

public class Book {
    private String name;
    private String publisher;
    private String author;
    private String ISBN;

    public Book(String name, String publisher, String author, String ISBN) {
        this.name = name;
        this.publisher = publisher;
        this.author = author;
        this.ISBN = ISBN;
    }
    public Book(String[] args) {
            this.name = args[0];
            this.author = args[1];
            this.publisher = args[2];
            this.ISBN = args[3];
    }

    public Book() {

    }

    public String getName() {
        return name;
    }

    public String getPublisher() {
        return publisher;
    }

    public String getAuthor() {
        return author;
    }

    public String getISBN() {
        return ISBN;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public void setISBN(String ISBN) {
        this.ISBN = ISBN;
    }

    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", publisher='" + publisher + '\'' +
                ", author='" + author + '\'' +
                ", ISBN='" + ISBN + '\'' +
                '}';
    }

//    public void usebms(Function p) {
//        p.showMenu();
//        p.addBook();
//        p.queryBook();
//        p.deleteBook();
//
//    }
}
